package com.satan.fmmall.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户 
 * @TableName users
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("users")
@ApiModel(value = "User对象",description = "用户/买家信息")
public class User implements Serializable {
    /**
     * 主键id 用户id
     */
    @TableId(type=IdType.AUTO)
    @ApiModelProperty(value = "用户id",required = true)
    private Integer userId;

    /**
     * 用户名 用户名
     */
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    /**
     * 密码 密码
     */
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    /**
     * 昵称 昵称
     */
    @ApiModelProperty(value = "昵称",required = false)
    private String nickname;

    /**
     * 真实姓名 真实姓名
     */
    @ApiModelProperty(value = "真实姓名",required = false)
    private String realname;

    /**
     * 头像 头像
     */
    @ApiModelProperty(value = "头像",required = true)
    private String userImg;

    /**
     * 手机号 手机号
     */
    @ApiModelProperty(value = "手机号",required = false)
    private String userMobile;

    /**
     * 邮箱地址 邮箱地址
     */
    @ApiModelProperty(value = "邮箱地址",required = false)
    private String userEmail;

    /**
     * 性别 M(男) or F(女)
     */
    @ApiModelProperty(value = "性别",required = false)
    private String userSex;

    /**
     * 生日 生日
     */
    @ApiModelProperty(value = "生日",required = false)
    private Date userBirth;

    /**
     * 注册时间 创建时间
     */
    @ApiModelProperty(value = "创建时间",required = false)
    @TableField(fill = FieldFill.INSERT)
    private Date userRegtime;

    /**
     * 更新时间 更新时间
     */
    @ApiModelProperty(value = "更新时间",required = false)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date userModtime;

    private static final long serialVersionUID = 1L;


}